public class Animal {
    public void eat(){
        System.out.println("吃");
    }
    public void sleep() {
        System.out.println("睡");
    }

}

class DOG extends Animal {
    public void bark() {
        System.out.println("玩");
    }
}